#!/usr/bin/python
# -*- coding: UTF-8 -*-

# 典型用法
from shutil import copytree, ignore_patterns
# copytree('source', 'destination', ignore=ignore_patterns('*.pyc', 'tmp*'))
# copytree(r'E:\learning\lina-dev', r'D:\learning\lina-dev', ignore=ignore_patterns('*.pyc', 'tmp*'))
copytree(r'E:\learning\practice_all', r'D:\learning\practice_all', ignore=ignore_patterns('env/*') )
copytree(r'E:\learning\mysite', r'D:\learning\mysite')
# copytree(R'E:\Office\file', R'D:\learning\file', symlinks=True)